<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    p {
        position: relative;
        display: inline-block;
        cursor: pointer;
        width: 120px;
        height: 100px;
    }

    .tooltip {
        display: none;
        width: 120px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 5px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 25px;
        left: 50%;
        margin-left: -60px;
        opacity: 0;
        transition: opacity 0.3s;
    }

    p:hover .tooltip {
        display: block;
        opacity: 1;
    }
</style>
</head>

<body>
<p>别打开<span class="tooltip"> 说了别打开</span></p>

</body>

</html>